<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);

define('FOPEN_READ',							'rb');
define('FOPEN_READ_WRITE',						'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE',		'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE',	'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE',					'ab');
define('FOPEN_READ_WRITE_CREATE',				'a+b');
define('FOPEN_WRITE_CREATE_STRICT',				'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT',		'x+b');

define('BASE_URL',			"http://" . $_SERVER['SERVER_NAME'] . "/" . APPNAME . "/" );
define('ASSETS_URL',		BASE_URL . "assets/" );
define('IMAGE_URL',			ASSETS_URL . "image/" );
define('CSS_URL',			ASSETS_URL . "css/" );
define('JS_URL',			ASSETS_URL . "js/" );
define('VIEW_URL',			ASSETS_URL . "css/" );
define('VIEW_PATH',			APPPATH . "views/" );

